<?php
class DtupModel extends Action{
	//test
	//
	//公版
	public function getdtuplsbydtupqyqqno($dtupqyqqno){
		$info=collectinfo(__METHOD__,'$dtupqyqqno',array($dtupqyqqno));
		$dtup=M('dtup');
		$dtupls=$dtup->where("dtupqyqqno='".$dtupqyqqno."'")->select();
		return createarrok('ok',$dtupls,'',$info);
	}

	//公版
	public function add($dt){
		$info=collectinfo(__METHOD__,'$dt',array($dt));
				
		$dtup=M('dtup');
		$dtup->data($dt)->add();

		return createarrok('ok',$data,'',$info);
	}
	

} 
?>